package com.qgzj.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "study_teaching_material")
public class TeachingMaterial implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 教材编号
     */
    @TableField(value = "material_no")
    private String materialNo;
    /**
     * 教材名称
     */
    @TableField(value = "material_name")
    private String materialName;
    /**
     * 小学，初中，高中
     */
    @TableField(value = "stage")
    private String stage;
    /**
     * 封面图url
     */
    @TableField(value = "cover_pic_url")
    private String coverPicUrl;
    /**
     * 册数
     */
    @TableField(value = "volume_num")
    private Integer volumeNum;
    /**
     * 出版社
     */
    @TableField(value = "publishing_house")
    private String publishingHouse;
    /**
     * 原价
     */
    @TableField(value = "original_price")
    private BigDecimal originalPrice;
    /**
     * 现价
     */
    @TableField(value = "current_price")
    private BigDecimal currentPrice;
    /**
     * 课程介绍
     */
    @TableField(value = "course_introduction")
    private String courseIntroduction;
    /**
     * 教材状态 已上架 已下架  已删除
     */
    @TableField(value = "status_info")
    private String statusInfo;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}